 <div class="main">
    <h1>
    login
    </h1>
   <form id="form1">
     <lable>name <input  name="username" id="name" type="text"/></lable><br/>
     <lable>pwd <input name="pwd" id="pwd" type="password"/></lable><br/>
     <lable>phone <input name="phone" id="phone" type="number"/></lable><br/>
     <button type="submit" id="login">注册</button>
   </form>
  </div>
 <script>
   $('#login').click(function (e) {
     e.preventDefault();
     $.post('/users/register', $('#form1').serialize(), function (oo) {
       console.log('注册成功')
     },'json')
   })
 </script>



